Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ubuntu 18] systemd-resolve workaround #881

Merged
merged 2 commits into from
May 14, 2020
Merged

[Ubuntu 18] systemd-resolve workaround #881

merged 2 commits into from
May 14, 2020

Conversation

Darleev
Copy link
Contributor

@Darleev Darleev commented May 13, 2020

Description

Bug fixing

  • This is Github issue, with exactly the same problem, which was not fixed, only workaround was provided as solution.
  • Root cause is unclear.
  • I'm not sure that we can remove systemd-resolve without effects. but we can disable it by default. However, in this case, it is required to add manually nameserver record to /etc/resolv.conf file.
  • In the official documentation, I didn't find misconfigurations.

So, the workaround helps us to resolve the issue with default systemd-resolve.

However, during the last try, we faced the issue with docker agents. I have verified that current workaround works as expected.

$ docker exec -it ubuntu:18 /bin/bash

Reproduced:

/# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
ln: failed to create symbolic link '/etc/resolv.conf': Device or resource busy

Current fix

/# if [[ -f /run/systemd/resolve/resolv.conf ]]; then
>     echo "Create resolv.conf link."
>     ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
> fi

works fine.

Related issue:

#819

Check list

  • [+] Related issue / work item is attached
  • Changes are tested and related VM images are successfully generated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants